import java.awt.*;

public class startmenu {

	public int posButtonID = 0;
	public int x, y;
	public Font font1 = new Font("Helvetica", Font.PLAIN, 20);
	public boolean clicked;
	public int item;

	public void drawObjects(Graphics g) {

		posButtonID = 0;
		g.setFont(font1);
		g.setColor(Color.DARK_GRAY);
		g.fillRect(0, 0, 800, 600);

		if ((x >= 300 && y >= 120) && (x <= 500 && y <= 175)) {

			posButtonID = 1;
			if (clicked) {
				item = 1;
			}
		}
		if ((x >= 300 && y >= 220) && (x <= 500 && y <= 275)) {

			posButtonID = 2;
			if (clicked) {
				item = 2;
			}
		}
		if ((x >= 300 && y >= 320) && (x <= 500 && y <= 375)) {

			posButtonID = 3;
			if (clicked) {
				item = 3;
			}
		}

		if ((x >= 300 && y >= 420) && (x <= 500 && y <= 475)) {

			posButtonID = 4;
			if (clicked) {
				item = 4;
			}
		}

		if (posButtonID == 1) {
			g.setColor(Color.CYAN);
		} else {
			g.setColor(Color.RED);
		}
		g.drawRect(300, 100, 200, 50);
		g.drawRect(305, 100 + 5, 190, 40);
		g.drawString("Spiel starten", 343, 133);

		if (posButtonID == 2) {
			g.setColor(Color.CYAN);
		} else {
			g.setColor(Color.RED);
		}
		g.drawRect(300, 200, 200, 50);
		g.drawRect(305, 200 + 5, 190, 40);
		g.drawString("Level auswahl", 335, 233);

		if (posButtonID == 3) {
			g.setColor(Color.CYAN);
		} else {
			g.setColor(Color.RED);
		}
		g.drawRect(300, 300, 200, 50);
		g.drawRect(305, 300 + 5, 190, 40);
		g.drawString("Hilfe", 378, 333);

		if (posButtonID == 4) {
			g.setColor(Color.CYAN);
		} else {
			g.setColor(Color.RED);
		}
		g.drawRect(300, 400, 200, 50);
		g.drawRect(305, 400 + 5, 190, 40);
		g.drawString("Ende", 378, 433);

	}

}